package com.css.fxfzfxqh.modules.seismicHazardData.entity;

import lombok.Data;

import java.util.Date;
import java.util.Objects;

/**
 * fxqh_ps_hazard_data
 */
@Data
public class PsHazardDataEntity {

    /**
     * id
     */
    private String id;

    /**
     * 公里格网id
     */
    private String kilometerGridId;

    /**
     * 经度
     */
    private String longitude;

    /**
     * 纬度
     */
    private String latitude;

    private String geom;

    /**
     * 创建人
     */
    private String createUser;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 修改人
     */
    private String updateUser;

    /**
     * 修改时间
     */
    private Date updateTime;

    /**
     * 删除标记
     */
    private String delFlag;

    private String province;
    private String city;
    private String county;

    private String year;

    private String fileId;

    private String type;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        PsHazardDataEntity that = (PsHazardDataEntity) o;
        return Objects.equals(province, that.province) &&
                Objects.equals(city, that.city) &&
                Objects.equals(county, that.county);
    }

    @Override
    public int hashCode() {
        return Objects.hash(province, city, county);
    }
}
